<?php
/*echo $_REQUEST['pro_id'];
echo $_REQUEST['project_name'];
echo $_REQUEST['project_manager'];
echo $_REQUEST['pro_description'];
echo $_REQUEST['start_date'];
echo $_REQUEST['complete_date'];
echo $_REQUEST['pro_status'];*/
include "../../operations/connection.php";
		
try {
	session_cache_expire(999999999);
	if(!isset($_SESSION)) 
{ 
session_start(); 
} 
	if (isset($_SESSION['addTester']) and isset($_SESSION['addCoder'])) {
		if ($_SESSION['action']=='addTester') {
			$tester = $_SESSION['addTester'];
			
			?>
				<tr class="table_new">
	                <td width="10%"></td>
	                <td width="40%"><?php echo 'Employee name';?></td>
	                <td width="40%"><?php echo 'Full name';?></td>
		                <td width="10%"></td>
	                </tr>     
					<?php 
	                if (count($tester)<=0){
	                ?>
	                <tr>
	                	<td colspan="4"><?=$l_list_emplty?></td>
	                </tr>
	                <?php
	                }else{
	                $indexT = 1;
	                foreach ($tester as $value) {?>
	                <tr>
	                	<td><?=$indexT?><input type='hidden' value="<?=$value[1]?>" /></td>
	                	<td><?=$value[2]?></td>
	                	<td><?=$value[3]?></td>
	                	<td><span onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'" onclick='removeTester(this)'><img src='images/del.png'/></span></td>
                </tr>
                <?php $indexT +=1;}}?>   
			
		<?php }else if($_SESSION['action']=='addCoder'){
			$coder = $_SESSION['addCoder'];
			?>
			
				<tr  class="table_new">
	                <td width="10%"></td>
	                <td width="40%"><?php echo 'Employee name';?></td>
	                <td width="40%"><?php echo 'Full name';?></td>
	                <td width="10%"></td>
                </tr>                
				<?php 
                if (count($coder)<=0){
                ?>
                <tr>
                	<td colspan="4"><?=$l_list_emplty?></td>
                </tr>
                <?php
                }else{ 
                $indexT = 1;
                foreach ($coder as $value) {?>
                <tr>
                	<td><?=$indexT?><input type='hidden' value="<?=$value[1]?>" /></td>
                	<td><?=$value[2]?></td>
                	<td><?=$value[3]?></td>
                	<td><span onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'" onclick='removeCoder(this)'><img src='images/del.png'/></span></td>
                </tr>
                <?php $indexT +=1;}}?> 
				                
		<?php }
	}
	
} catch (Exception $e) {
	mysql_close($connection);
}

mysql_close($connection);
?>